package com.ruoyi.lowcode.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据字典业务对象 lc_dictionary
 *
 * @author ruoyi
 * @date 2023-09-28
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class LcDictionaryBo extends BaseEntity {

    /**
     * 数据字典id
     */
    @NotNull(message = "数据字典id不能为空", groups = { EditGroup.class })
    private Long dictionaryId;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dictionaryName;

    /**
     * 类型
     */
    @NotBlank(message = "类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 数据源
     */
    private String databaseSourceId;

    /**
     * 数据内容
     */
    @NotBlank(message = "数据内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 备注
     */
//    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
